package com.wenson.structural.decorator;

/**
 * @ClassName: Decorator
 * @Author: luowangcheng
 * @Date: 2024/6/14 6:59
 * @Description: 化妆师
 */
public abstract class Decorator implements Showable {

    Showable showable; //被装饰的展示者

    public Decorator(Showable showable) { //构造时注入被装饰者
        this.showable = showable;
    }

    @Override
    public void show() {
        showable.show(); //直接调用不加任何装饰
    }
}
